import request from '@/utils/request';
export async function queryProject() {
  return request('/api/projectManage');
}

export async function createProject(params) {
  return request('/api/projectManage', {
    method: 'POST',
    data: params,
  });
}

export async function deleteProject(params) {
  return request('/api/projectManage', {
    method: 'DELETE',
    data: params,
  });
}

export async function updateProject(params) {
  return request(`/api/projectManage/${params._id}`, {
    method: 'PUT',
    data: params,
  });
}
